using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace TreeControl
{
    /// <summary>
    /// Provides data for the HeaderedItem.HeightChanged events.
    /// </summary>
    public class HeightChangedEventArgs : EventArgs
    {
        #region Constants
        // Default change in height will be considered as zero.
        private const int DEFAULT_DELTA = 0;
        #endregion

        #region Fields
        private int myDelta;
        #endregion

        #region Properties
        /// <summary>
        /// Gets the height that has been changed.
        /// </summary>
        public int Delta
        {
            get { return myDelta; }
        }
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the HeightChangedEventArgs class.
        /// </summary>
        public HeightChangedEventArgs()
            : this(DEFAULT_DELTA)
        {

        }

        /// <summary>
        /// Initializes a new instance of the HeightChangedEventArgs class.
        /// </summary>
        /// <param name="delta">the height that has been changed.</param>
        public HeightChangedEventArgs(int delta)
        {
            myDelta = delta;
        }
        #endregion
    }
}
